<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>会员组列表</title>
	<Pintuer />
</head>
<body>
	<div class="container-layout">
		<!-- 导航位置 -->
		<div class="text-small text-gray height-big">
			<div class="float-left height">
				<span class="icon-home"></span>
				当前位置： 首页 -> 用户管理 -> 会员等级 -> 等级列表
			</div>
			<div class="float-right">
				<div class="radius-rounded height">
					<button type="button" onClick="location.href='{?:U('index')?}'" class="button">
						<i class="icon-th-list"></i>
						会员组列表
					</button>
					<button type="button" onClick="location.href='{?:U('add')?}'" class="button">
						<i class="icon-edit"></i>
						添加会员组
					</button>
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
		<hr />
		<!-- 导航位置 End -->
	<form action="{?:U('updateSort',array('mid'=> $hd['get']['mid']))?}" method="POST">
		<table class="table table-bordered table-hover table-condensed table-responsive">
			<tr class="bg">
				<td width="80">ID</td>
				<td  width="200">会员组名</td>
				<td>描述</td>
				<td width="100">系统</td>
				<td width="100">是否启用</td>
				<td width="100">积分小于</td>
				<td width="100">允许评论</td>
				<td width="100">允许短消息</td>
				<td>操作</td>
			</tr>
			<volist name="data" id="vo">
				<tr>
					<td>{?$vo.gid?}</td>
					<td>{?$vo.gname?}</td>
					<td>{?$vo.gremark?}</td>
					<td>
						<if condition="$vo['pid'] eq 1">
							<font color="red">√</font>
							<else/>
							<font color="blue">×</font>
						</if>
					</td>
					<td>
						<if condition="$vo['status'] eq 1">
							<font color="red">√</font>
							<else/>
							<font color="blue">×</font>
						</if>
					</td>
					<td>{?$vo.credits?}</td>
					<td>
						<if condition="$vo['comment']">
							<font color="red">√</font>
							<else/>
							<font color="blue">×</font>
						</if>
					</td>
					<td>
						<if condition="$vo['message']">
							<font color="red">√</font>
							<else/>
							<font color="blue">×</font>
						</if>
					</td>
					<td width="300">
						<a href="{?:U('edit',array('gid'=> $vo['gid']))?}">
							<i class="icon-edit"></i>
							修改
						</a> |
						<if condition="$vo['pid'] eq 2">
							<a href="javascript:;" class="dialogs" data-toggle="click" data-target="#mydialog{?$vo.gid?}" data-mask="1" data-width="20%">
								<i class="icon-trash-o"></i>
								删除
							</a>
							<else/>
							<span class="text-gray">
								<i class="icon-trash-o"></i>
								删除
							</span>
						</if>
						<!-- 删除确认框 Start -->
						<div id="mydialog{?$vo.gid?}">
							<div class="dialog bouncein">
								<div class="dialog-head">
									<span class="close icon-times"></span>
									<strong>删除确认对话框</strong>
								</div>
								<div class="dialog-body">
									是否确认删除该会员组？
								</div>
								<div class="dialog-foot">
									<button class="button bg-sub" onClick="location.href='{?:U('del',array('gid'=>$vo['gid']))?}'">
										<span class="icon-check-square-o"></span>
										确 认
									</button>
									<button class="button dialog-close">
										<span class="icon-times"></span>
										取 消
									</button>
								</div>
							</div>
						</div>
						<!-- 删除确认框 End -->
					</td>
				</tr>
			</volist>
		</table>
	</form>
</div>
</body>
</html>